﻿// Copyright (c) Wiesław Šoltés. All rights reserved.
// Licensed under the MIT. See LICENSE.TXT file in the project root for details.

#nullable enable
using System;

namespace Core2D.Model.History;

public interface IHistory
{
    void Snapshot<T>(T previous, T next, Action<T> update);

    bool CanUndo();

    bool CanRedo();

    bool Undo();

    bool Redo();

    void Reset();
}
